package com.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.app.dao.CompanyDao;
import com.app.entity.Company;
import com.app.service.CompanyService;

@Service
@Transactional(readOnly=true)
public class CompanyServiceImpl implements CompanyService {
	@Autowired
	private CompanyDao companyDao;
	
	public Company findComany() {
		return companyDao.findComany();
	}

	@Transactional(readOnly=false)
	public void updateCompany(Company company) {
		companyDao.updateCompany(company);
	}

	public Company load(Integer id) {
		return companyDao.load(id);
	}

}
